﻿@model SRF.Web.Areas.Admin.Models.ChangePasswordModel
@{
    Layout = "~/Views/Shared/_EditDialog.cshtml";  
}
@using SRF.UI.Html
@section header{ 
    <style type="text/css">
        
    </style>
    <script type="text/javascript" language="javascript">
        function onComplete() {
            $.dialog.close("ok");
        }
        function onDialogClose(msg) {
            $.ajaxSubmit();
        } 
    </script>
}
@using (Ajax.BeginForm("setpassword", null, new AjaxOptions() { HttpMethod = "Post", OnComplete = "onComplete" }, new { @class = "form-horizontal", style = "" }))
{     
    <table>
        <tr>
            <td>
                <label class="control-label" for="Name">
                    登录名:</label>
                <span class="display-label">@Html.TextFor(m => m.LoginId, submit: true)</span>
            </td>
        </tr>
        <tr>
            <td>
                <label class="control-label" for="Password">
                    新密码:</label>
                @Html.PasswordFor(m => m.NewPassword)
            </td>
        </tr>
    </table>
}